home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / dskutil / fill501.zip / FILL.DOC < prev    next >
Text File  |  1995-01-07  |  16KB  |  334 lines

  1. FILL.DOC
  2. 01/07/95
  3.  
  4. The FILL program is designed to help you move or copy files off a hard disk
  5. while reducing the amount of wasted space on the destination disks.  Internally,
  6. it does this by sorting the file names so the largest files are moved/copied
  7. first.  It then moves or copies whatever files can fit on the floppy, skipping
  8. any that can't.  Features:
  9.  
  10.   * Can either move or copy the files to the resulting location
  11.   * Can go onto to multiple diskettes as desired, beeping if desired when
  12.     the next disk is expected
  13.   * Can move the files in file name order or any of standard ordering
  14.     categories
  15.   * Can be used to split up files which are too big to fit on a single disk
  16.   * Can create a status/transaction file for you, showing what was copied/moved
  17.   * Can label the output diskette, providing some patterns like sequence numbers
  18.     and dates which it will fill in for you
  19.   * Some times useful for network transfers where standard MOVE command doesn't
  20.     always work
  21.   * Can review and delete if desired any files which are already in the
  22.     output destination (e.g. already on the output diskette)
  23.   * Can reformat the whole disk if files are going to drive A or B
  24.  
  25. Limits:
  26.   * Routine can only process the first 500 files in a given subdirectory.  It
  27.     ignores the rest of them.
  28.   * Routine can only review for deletion the first 200 files in the output
  29.     location.
  30.   * Routine does not provide any cool features to fix up destination drives
  31.     that have surface errors.  If it encounters an error, it just beeps, gives
  32.     you an error message, and returns to DOS.
  33.   * Routine will not format the output diskette for you.
  34.   * Routine's continual testing for new diskette (/CONTINUAL) only works if the
  35.     diskette was formatted using DOS 4.0 or later.  That's the version that
  36.     puts volume sequence numbers on the diskettes.  One way to insure this if
  37.     you're using the newer versions of DOS is to do a quick-reformat of your
  38.     floppies whenever you'd normally do a DEL A:*.*.  I do this with a QDR.BAT
  39.     command that has the following:
  40.  
  41.         FORMAT %1 /Q /U /V:Bruce
  42.  
  43.     I then say "QDR A:" or "QDR B:".  It invokes an unconditional quick format
  44.     and applies a volume label on the diskette (to avoid the prompt).  If the
  45.     diskette does not have a sequence number, DOS tells you it can't be
  46.     quick-formatted and asks if it can do the full format instead.
  47.  
  48.  
  49. Specifying parameters:
  50.  
  51. Parameters for this program can be set in the following ways.  The last setting
  52. encountered always wins:
  53.   - Read from an *.INI file (see below),
  54.   - Through the use of an environmental variable (SET FILL=whatever), or
  55.   - From the command line (see "Syntax" below)
  56.  
  57.  
  58.  
  59. The FILL.INI file:
  60.  
  61. FILL will read a FILL.INI file if one is found.  (You can specify a different
  62. file name if desired.) The file is an ASCII text file that can be created
  63. maintained by hand.  The file can consist or one or more command line
  64. parameters (only those that begin with a "/"; no multi-word ones), one statement
  65. per line.
  66.  
  67. The file can also contain comments which are blank lines or any line beginning
  68. with:
  69.         ;    (semi-colon)
  70.         :    (colon)
  71.         '    (quote)
  72.  
  73. FILL looks for the initialization file in your default subdirectory first.  It
  74. then searches for it in the subdirectory where the executable was and then goes
  75. through your DOS path.
  76.  
  77. Passing in "/-I" or "/INULL" skips loading the INI file.  This saves some
  78. execution time as the program does not need to search your path for the file.
  79.  
  80.  
  81. Syntax:
  82.  
  83.     FILL [ source-filespec ] [ [ /TO ] dest-drive: | [ /TO ] dest-drive:\path\ ]
  84.       [ /MOVE | /COPY ] [ /PROMPT | /-PROMPT ] [ /Iinitfile | /-I ]
  85.       [ /OVERWRITE | /-OVERWRITE | /OVERSKIP | /OVERASK ]
  86.       [ /Ox | /O-x ] [ /Xfilespec ]... [ /WIPE | /-WIPE ] [ /MULTI | /SINGLE ]
  87.       [ /SPLIT ] [ /LABEL=label [ /START=n ] ] [ /Fstatfile [ /S+ | /S- | S* ]
  88.       [ /CONTINUAL ] [ /TIME | /-TIME ] [ /BEEP | /-BEEP ]
  89.       [ /FAKE ] [ /Q ] [ /? ]
  90.  
  91. where:
  92.  
  93. "source-filespec" is the file specification for what you want to move.  You can
  94. specify a drive and path and file wildcards if necessary (e.g.  "C:\TEMP\*.BAT")
  95. but otherwise it defaults to your default drive and directory and takes "*.*".
  96. Note that the program cannot handle any request for more than 500 files at a
  97. time.
  98.  
  99. "dest-drive:" or "dest-drive:\path" (or "/TO dest-drive:" or "/TO
  100. dest-drive:\path") tells the routine what drive or path to move the files to.
  101. In many cases, the routine doesn't really care whether the source specification
  102. precedes or follows the destination specification.  If either parameter ends
  103. with a colon (e.g. "A:") or slash (e.g. "C:\QB45\"), the routine will presume
  104. that's the destination specification and the other one must be the source
  105. specification.  If either parameter contains a wildcard, the routine will
  106. presume that's the source specification and the other one must be the
  107. destination specification.  So "FILL A: *.BAS" is the same as "FILL *.BAS A:".
  108. The original default is "A:" (or "/TO A:").
  109.  
  110.  
  111. "/MOVE" says to move the files instead of copying them.  Initially defaults to
  112. "/MOVE".
  113.  
  114. "/COPY" says to copy the files instead of moving them.  Initially defaults to
  115. "/MOVE".
  116.  
  117. "/PROMPT" says to prompt for each filename before moving it.  Initially defaults
  118. to "/-PROMPT".
  119.  
  120. "/-PROMPT" says to not prompt for each file.  Initially defaults to "/-PROMPT".
  121.  
  122. "/Iinitfile" says to read an initialization file with the file name "initfile".
  123. The file specification *must* contain a period.  If no drive or path information
  124. is specified, the program will search for initfile beginning in your default
  125. subdirectory and then going throughout your DOS path.  The use of an
  126. initialization file is optional.  Initially defaults to "/IFILL.INI".
  127.  
  128. "/-I" (or "/INULL") says to skip loading the initialization file.
  129.  
  130. "/OVERWRITE" says to overwrite same-named files in the destination path.
  131. Initially defaults to "/OVERSKIP".
  132.  
  133. "/-OVERWRITE" says to abort if any same-named files are found in the destination
  134. path.  Initially defaults to "/OVERSKIP".
  135.  
  136. "/OVERSKIP" says to skip any file that already exists in the destination path.
  137. The counts aren't accurate in this case.  This is initially the default.
  138.  
  139. "/OVERASK" says to prompt if same-named files exist in the destination
  140. directory.  Initially defaults to "/OVERSKIP".
  141.  
  142. "/Ox" and "/O-x" allow you to specify the copy order for the files.  "x" can be
  143. one of the following:
  144.  
  145.         N = file name
  146.         D = file date and time
  147.         S = file size
  148.  
  149. If you precede the "x" with a dash ("-"), the sort will be done in reverse
  150. order.  Note that this parameter does not determine which files are copied; it
  151. only determines what order they are actually copied.  Since the order that the
  152. file tends to show up in a DOS DIR listing is based on creation order, this
  153. sequence may be relevant to how the files ultimately show up.  Initially
  154. defaults to "/ON".
  155.  
  156.  
  157. "/Xfilespec" says to exclude certain filespecs from being moved.  You can
  158. specify up to 10 exclusion parameters but each must have their own /Xfilespec
  159. statement.  For example, to move all files except those with a BAS extension,
  160. you could say "FILL /X*.BAS".
  161.  
  162. "/WIPE" says that if the destination drive has files on it, prompt the user
  163. for whether these files should be deleted or not.  Six sub-options show up in
  164. this case:
  165.  
  166.     Do *NOT* delete the x file(s)    Don't delete anything
  167.     List file(s)                     List the files but don't delete any of
  168.                                      them.  The user will be reprompted for
  169.                                      these four options after pressing a key.
  170.     Select file(s) to delete         List the files and allow the user to
  171.                                      select any to be deleted.  Keys:
  172.                                         * Cursor keys -- move among list
  173.                                         * Space       -- select that file
  174.                                         * Ctrl-Enter  -- select all files
  175.                                         * Ctrl-bs     -- deselect all files
  176.                                         * Enter       -- process those tagged
  177.                                         * Esc         -- skip processing
  178.                                      After pressing Enter, the selected files
  179.                                      will be deleted.  You will then get the
  180.                                      standard four prompts again.
  181.     Delete all file(s)               Delete all files in the specified
  182.                                      directory.  Subdirectory files will not
  183.                                      be deleted.
  184.     Reformat the diskette            If your output drive is either A or B,
  185.                                      the program will shell to DOS and execute
  186.                                      a "FORMAT d:" command.  This (and the
  187.                                      next) sub-option will result in the
  188.                                      subdirectories being eliminated, something
  189.                                      which the prior sub-options don't do for
  190.                                      you.
  191.     Quick-reformat the diskette      If your output drive is either A or B
  192.                                      and you're running under DOS 5.0 or higher,
  193.                                      the program will shell to DOS and execute
  194.                                      a "FORMAT d: /Q" command.
  195.  
  196. Initially defaults to "/-WIPE".
  197.  
  198. "/-WIPE" reverses /WIPE.  Initially defaults to "/-WIPE".
  199.  
  200. "/MULTI" says to go to a second disk if all of the files can't fit on the first
  201. diskette.  Initially defaults to "/MULTI".
  202.  
  203. "/SINGLE" says process only one diskette at a time and to not prompt for the
  204. next diskette once the first gets filled up.  Initially defaults to "/MULTI".
  205.  
  206.  
  207. "/SPLIT" says to split up large files which otherwise would not be able to fit
  208. onto the output disk.  For example, /SPLIT is useful when you have a 1.8MB file
  209. that you're trying to copy or move to a 1.2MB or 1.44MB diskette.  Files are
  210. split only if an empty diskette in the output destination would not be able to
  211. support the file; it will not split up a 800KB file just because the 1.2MB
  212. output diskette only has 600KB free.  Files will be given the extensions of
  213. .001, .002, etc until all necessary splitting is accomplished.  To put them back
  214. together again, use the DOS COPY copy with the /B option.  For example:
  215.  
  216.         COPY TEST.001/B+TEST.002/B TEST.ZIP
  217.  
  218. "/LABEL=label" specifies the volume label to be written to the output disk.
  219. By default, the label is not changed.  The label can be a quoted mixed-case
  220. string.  It can contain several replaceable lowercase only parameters: "mm" is
  221. replaced with the two-digit month, "dd" is replaced with the two-digit day, "yy"
  222. is replaced with the two-digit year, and "n" or "nn" or "nnn" is replaced by the
  223. sequence number of the disk.  All numeric fields are padded to the left with
  224. zeroes as necessary.  If the current date is November 7, 1993:
  225.  
  226.         /LABEL="BKyymmdd nn"
  227.  
  228. will label the first first "BK931107 01", the second disk "BK931107 02" etc.
  229. Note that labels can be no longer than 11 characters in length.  All characters
  230. except the replaceable parameters will be translated to uppercase characters.
  231.  
  232. "/START=n" specifies the first sequence number to use in place of "n", "nn", or
  233. "nnn" in the /LABEL parameter.  Defaults to "/START=1".
  234.  
  235. "/Fstatfile" specifies the name of a status file to be used.  This status file
  236. is a text file that reports on what's been processed by the program.  If it
  237. exists already, the status file is appended to, not overwritten.  A sample of
  238. some lines from the status file using the /S* option (which is not the default):
  239.  
  240.   FILL results for  /copy *.exe /ftest.txt /beep /wipe /s* /split
  241.   Being run on 11-07-1993 at 17:58:10
  242.  
  243.   Label        FileName    Date     Time                Size Operation
  244.  
  245.   TEST93 #01   AV.EXE       09/29/93 00:50:58          70,282 SKIP
  246.   TEST93 #01   BC.EXE       08/19/92 23:59:00         150,562 SKIP
  247.   TEST93 #01   BFIND.EXE    08/02/93 23:07:08          60,016 SKIP
  248.   TEST93 #01   VBDOS.EXE    08/19/92 23:59:00         555,520 COPY
  249.  
  250.   BRUCE        AV.EXE       09/29/93 00:50:58          70,282 SKIP
  251.   BRUCE        BC.EXE       08/19/92 23:59:00         150,562 SKIP
  252.   BRUCE        BFIND.EXE    08/02/93 23:07:08          60,016 SKIP
  253.  
  254. "/S+" specifies that the only files to be written to the status file are those
  255. files that actually get copied/moved.  This is the default.
  256.  
  257. "/S-" specifies that the only files to be written to the status file are those
  258. files that did not get copied/moved.  Since the skipping is determination is
  259. done with each disk, the status file may show the same file name as "SKIP" over
  260. and over again.
  261.  
  262.  
  263. "/S*" specifies that the status report should contain all files copied/moved as
  264. well as skipped.  This can be a huge report.
  265.  
  266. "/CONTINUAL" is used if you want the routine to continually check your floppy
  267. drive to see when a new diskette has been put in and continue once it recognizes
  268. this has happened.  The only time you'd have to press a key is if you want to
  269. stop processing diskettes (in which case you'd press Escape).  This option is
  270. only available if you're using DOS 4.0 or higher and only works for disks that
  271. have been formatted using DOS 4.0 or higher (it uses the serial number on the
  272. disk in order to determine that the disk has been replaced).
  273.  
  274. "/TIME" says to show how much time it took for the transfers, showing you
  275. a bytes copied/moved per second.
  276.  
  277. "/-TIME" says to skip the bytes per second information.  This is initially
  278. the default.
  279.  
  280. "/BEEP" says to beep once the routine is done doing its thing (a high tone
  281. followed by a low one).  It will also beep whenever it's time to stick in a new
  282. diskette (a low tone followed by a high one).  Initially defaults to "/BEEP".
  283.  
  284. "/-BEEP" says to not beep upon completion.  Initially defaults to "/-BEEP".
  285.  
  286. "/FAKE" turns off the actual copying of files.  It basically puts you into
  287. simulation mode so you can see what it would do, how many disks it would take,
  288. et cetera.
  289.  
  290. "/Q" turns off the file-by-file status reporting.
  291.  
  292. "/?" or "/HELP" or "HELP" shows you the syntax for the command.
  293.  
  294.  
  295. Return codes:
  296.  
  297. FILL returns the following ERRORLEVEL codes:
  298.         0 = no problems, all files copied
  299.         1 = no problems, but some files skipped since /-MULTI
  300.       252 = had DOS errors copying/moving the files (bad sectors found)
  301.       253 = had problems copying/moving the files
  302.       254 = no files found to copy/move
  303.       255 = syntax problems, or /? requested
  304.  
  305.  
  306.  
  307. Author:
  308.  
  309. This program was written by Bruce Guthrie of Wayne Software.  It is free for use
  310. and redistribution provided relevant documentation is kept with the program, no
  311. changes are made to the program or documentation, and it is not bundled with
  312. commercial programs or charged for separately.  People who need to bundle it in
  313. for-sale packages must pay a $50 registration fee to "Wayne Software" at the
  314. following address.
  315.  
  316. Additional information about this and other Wayne Software programs can be found
  317. in the file BRUCEymm.DOC which should be included in the original ZIP file.
  318. ("ymm" is replaced by the last digit of the year and the two digit month of the
  319. release.  BRUCE312.DOC came out in December 1993.  This same naming convention
  320. is used in naming the ZIP file that this program was included in.) Comments and
  321. suggestions can also be sent to:
  322.  
  323.                 Bruce Guthrie
  324.                 Wayne Software
  325.                 113 Sheffield St.
  326.                 Silver Spring, MD 20910
  327.  
  328.                 fax: (301) 588-8986
  329.  
  330. See BRUCEymm.DOC file for additional contact information.
  331.  
  332. Foreign users:  Please provide an Internet e-mail address in all correspondence.
  333.  
  334.